// 引入axios
import axios from '@/api/axios'

// 获取分类页总数据
export function categoryList(data) {
    return axios({
        url: '/catalog/index',
        method: 'get',
        params: data
    })
}


// 获取每一项的数据
export function currentCategory(data) {
    return axios({
        url: '/catalog/current',
        method: 'get',
        params: data
    })
}